package day10.pack6;

public class TestStringBuilder {
    public static void main(String[] args) {
//        StringBuilder s1 = new StringBuilder("hello");
//        StringBuilder s2 = new StringBuilder("hello");
//        System.out.println(s1.equals(s2));
//        System.out.println(s1.toString().equals(s2.toString()));
        StringBuilder s1 = new StringBuilder();
        for (int i = 97; i < 123; i++) {
            s1.append((char)i + ",");
        }
        s1.deleteCharAt(s1.length() - 1);
        System.out.println(s1);
//        System.out.println(s1.substring(0, s1.length() - 1));
        // System.out.println(s1.substring(0, s1.length() - 1));
    }
}
